package com.horizon.common.event;

import lombok.Getter;
import org.hibernate.event.spi.AbstractEvent;
import org.springframework.context.ApplicationEvent;

/**
 * 审计日志事件
 *
 * @author wangfuwei
 * @version 2018-08-09
 */
@Getter
public class AuditLogEvent extends ApplicationEvent {

    private AbstractEvent event;

    /**
     * 重写构造方法
     *
     * @param source 发生事件的对象
     * @param event  Hibernate事件对象
     */
    public AuditLogEvent(Object source, AbstractEvent event) {
        super(source);
        this.event = event;
    }
}
